<?php

/**
 * @author shuang
 * @date 2017-1-3 23:29:28
 */
use yii\helpers\Url;
use common\widgets\DatalistWidgets;

$labels = [
    "username" => "刷手账号",
    "desc" => "描述",
    "amount" => "金额",
    "type" => "类型",
    "time" => "时间",
];
//添加操作提示模板
echo $this->render("/layouts/prompt", array("labels" => $labels));

//调用数据列表模板
echo DatalistWidgets::widget([
    'data_url' => Url::toRoute(["finansys/ajaxbrushlist"]),
    "labels" => $labels,
    "columns" => ["username", "desc", "amount", "type", "time"],
    "tableOtherAttributes" => [
        "data-search" => "true",
    ]
]);